//
// Created by Arikes on 9/19/21.
// 建造者模式

#ifndef DESIGNERMODE_PRODUCT_H
#define DESIGNERMODE_PRODUCT_H

#include <string>
#include <iostream>
namespace BuildMode{
    class Product{
    public:
        void setPartA(std::string str)
        {
            _partA = str;
        }

        void setPartB(std::string str)
        {
            _partB = str;
        }

        void setPartC(std::string str)
        {
            _partC = str;
        }

        void showParts()
        {
            std::cout<<"partA:"<<_partA<<std::endl;
            std::cout<<"partB:"<<_partB<<std::endl;
            std::cout<<"partC:"<<_partC<<std::endl;
        }
    private:
        std::string _partA;
        std::string _partB;
        std::string _partC;
    };
}

#endif //DESIGNERMODE_PRODUCT_H
